home *** CD-ROM | disk | FTP | other *** search
/ Champak 64 / Volume 64 - JOGO DISK .iso / Games / the_best_every_day.swf / scripts / __Packages / MCObstacles.as < prev    next >
Text File  |  2008-04-10  |  684b  |  37 lines

  1. class MCObstacles extends MovieClip
  2. {
  3.    var STRING_TYPE = undefined;
  4.    function MCObstacles(l_sType)
  5.    {
  6.       super();
  7.       _global.C.addObstacle(this,l_sType);
  8.       this.bActive = false;
  9.       this.Etat = "Idle";
  10.       this.gotoAndStop("Idle");
  11.       this.onEnterFrame = function()
  12.       {
  13.          this.EnterFrame();
  14.       };
  15.    }
  16.    function activate()
  17.    {
  18.       this.bActive = true;
  19.    }
  20.    function deactivate()
  21.    {
  22.       this.bActive = false;
  23.    }
  24.    function getType()
  25.    {
  26.       return this.STRING_TYPE;
  27.    }
  28.    function getActive()
  29.    {
  30.       return this.bActive;
  31.    }
  32.    function EnterFrame()
  33.    {
  34.       this[this.Etat]();
  35.    }
  36. }
  37.